import request from '@/utils/request'

// 查询网关到期消息列表
export function listGatewayExpire(query) {
    return request({
        url: '/app-api/report/gatewayExpire/list',
        method: 'get',
        params: query
    })
}

// 查询网关到期消息详细
export function getGatewayExpire(id) {
    return request({
        url: '/app-api/report/gatewayExpire/' + id,
        method: 'get'
    })
}

// 新增网关到期消息
export function addGatewayExpire(data) {
    return request({
        url: '/report/gatewayExpire',
        method: 'post',
        data: data
    })
}

// 修改网关到期消息
export function updateGatewayExpire(data) {
    return request({
        url: '/report/gatewayExpire',
        method: 'put',
        data: data
    })
}

// 删除网关到期消息
export function delGatewayExpire(id) {
    return request({
        url: '/app-api/report/gatewayExpire/' + id,
        method: 'delete'
    })
}

/**
 * 查询网关到期未处理条数
 */
export function unProcessCount() {
    return request({
        url: '/app-api/report/gatewayExpire/unProcess/count',
        method: 'get'
    })
}

/**
 * 把网关到期记录标记为已处理
 */
export function process(data) {
    return request({
        url: '/app-api/report/gatewayExpire/process',
        method: 'post',
        data: data
    })
}
